package com.woniuxy.lab.woniu_lab_boss.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniuxy.lab.woniu_lab_boss.controller.form.AddPortForm;
import com.woniuxy.lab.woniu_lab_boss.model.Port;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.lab.woniu_lab_boss.service.dto.PortDto;

/**
 * <p>
 * 端口表 服务类
 * </p>
 *
 * @author Silas
 * @since 2023-03-15
 */
public interface PortService extends IService<Port> {

    IPage<PortDto> findAll(Integer page, Integer size);

    IPage<PortDto> queryByCondition(Integer page, Integer size, String condition);

    void addPort(AddPortForm addPortForm);

    void modifyPort(Integer portId, String port, String type);
}
